package com.zjcloud.jwgl.domain;

import java.io.Serializable;
import java.util.List;

/**
 * 排课基因实体类，用于遗传算法
 */
public class ScheduleGene implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 课程安排列表 */
    private List<CourseArrangement> arrangements;

    /** 适应度分数 */
    private double fitness;

    public ScheduleGene() {
        this.fitness = 0.0;
    }

    public ScheduleGene(List<CourseArrangement> arrangements) {
        this.arrangements = arrangements;
        this.fitness = 0.0;
    }

    public List<CourseArrangement> getArrangements() {
        return arrangements;
    }

    public void setArrangements(List<CourseArrangement> arrangements) {
        this.arrangements = arrangements;
    }

    public double getFitness() {
        return fitness;
    }

    public void setFitness(double fitness) {
        this.fitness = fitness;
    }
}